import java.util.Scanner;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        int Letter = 0;
        int Space = 0;
        int Number = 0;
        int Other = 0;
        for (int i = 0; i < s.length(); i++)
        {
            if(Character.isLetter(s.charAt(i)))
            {
                Letter++;
            }
            else if(Character.isWhitespace(s.charAt(i)))
            {
                Space++;
            }
            else if(Character.isDigit(s.charAt(i)))
            {
                Number++;
            }
            else
            {
                Other++;
            }
        }
        System.out.println("The number of letter is:"+Letter);
        System.out.println("The number of space is:"+Space);
        System.out.println("The number of number is:"+Number);
        System.out.println("The number of other character is:"+Other);
    }
}